package com.itheima.homework.work1;
//电冰箱
public class Refrigerator extends Electric{
    private String style;//门款式
    private String RefrigerationMode;//制冷方式

    public Refrigerator() {
    }

    public Refrigerator(String bread, String model, String color, int price, String style, String refrigerationMode) {
        super(bread, model, color, price);
        this.style = style;
        this.RefrigerationMode = refrigerationMode;
    }

    public String getStyle() {
        return style;
    }

    public void setStyle(String style) {
        this.style = style;
    }

    public String getRefrigerationMode() {
        return RefrigerationMode;
    }

    public void setRefrigerationMode(String refrigerationMode) {
        RefrigerationMode = refrigerationMode;
    }

    @Override
    public String toString() {
        return
                super.toString()+
                "style='" + style + '\'' +
                ", RefrigerationMode='" + RefrigerationMode + '\'' +
                '}';
    }
}
